import request from '@/utils/request'

// 查询订单详情记录列表
export function listSlOrderDetail(query) {
  return request({
    url: '/projects/SlOrderDetail/list',
    method: 'get',
    params: query
  })
}

// 查询订单详情记录详细
export function getSlOrderDetail(id) {
  return request({
    url: '/projects/SlOrderDetail/' + id,
    method: 'get'
  })
}

// 新增订单详情记录
export function addSlOrderDetail(data) {
  return request({
    url: '/projects/SlOrderDetail',
    method: 'post',
    data: data
  })
}

// 修改订单详情记录
export function updateSlOrderDetail(data) {
  return request({
    url: '/projects/SlOrderDetail',
    method: 'put',
    data: data
  })
}

// 删除订单详情记录
export function delSlOrderDetail(id) {
  return request({
    url: '/projects/SlOrderDetail/' + id,
    method: 'delete'
  })
}
